﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace TheDrinksApp.Screen
{
    public partial class HomeScreen : UserControl
    {
        private MainPage mainPage;

        public HomeScreen(MainPage mainPage)
        {
            InitializeComponent();
            this.mainPage = mainPage;
        }

        private void btnNewOrder_Click(object sender, RoutedEventArgs e)
        {
            mainPage.ShowPage(PAGE.CHOOSE_CATEGORY);
        }

        private void btnRecentOrder_Click(object sender, RoutedEventArgs e)
        {
            mainPage.setCurrentRootPage(PAGE.RECENT_ORDER);
            mainPage.ShowPage(PAGE.RECENT_ORDER);
        }
    }
}
